package com.javafactroy.kunlong.data.entity;

import lombok.Data;
import com.javafactroy.kunlong.base.dto.TQueryParam;
import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;
import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import io.swagger.annotations.ApiModelProperty;
/**
*  @author raymond.lei@163.com
*  @date   2023-11-30 20:45:15
*  @file   QueryConditionApiEntity.java
*  @company com.javafactroy.kunlong
*
*/
@Data
@Table(name="query_condition")
@ApiModel("")
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(18)
public class QueryConditionApiEntity   extends PageInfoDto {
    private static final long serialVersionUID = 1L; //一会就说这个是做什么的

    public final static String pkeyField = "id";
    public final static String pkeyProp  = "id";
    @Data
    public static class QueryConditionQueryParam extends TQueryParam<QueryConditionApiEntity> {
        public QueryConditionQueryParam() {
            param = new QueryConditionApiEntity();
        }
    }

    		// id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("id")
		@Column(name="id")
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "Mysql")
		Long  id;

		// parent_id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("parent_id")
		@Column(name="parent_id")
		Long  parentId;

		// master_id dataType:bigint
		@ApiModelProperty(name="")
		@ExcelProperty("master_id")
		@Column(name="master_id")
		Long  masterId;

		// query_type_china dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("query_type_china")
		@Column(name="query_type_china")
		String  queryTypeChina;

		// query_type dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("query_type")
		@Column(name="query_type")
		String  queryType;

		// field_name_china dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("field_name_china")
		@Column(name="field_name_china")
		String  fieldNameChina;

		// field_name dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("field_name")
		@Column(name="field_name")
		String  fieldName;

		// field_type_china dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("field_type_china")
		@Column(name="field_type_china")
		String  fieldTypeChina;

		// field_type dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("field_type")
		@Column(name="field_type")
		String  fieldType;

		// start_value dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("start_value")
		@Column(name="start_value")
		String  startValue;

		// end_value dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("end_value")
		@Column(name="end_value")
		String  endValue;

		// eq_value dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("eq_value")
		@Column(name="eq_value")
		String  eqValue;

		// like_value dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("like_value")
		@Column(name="like_value")
		String  likeValue;

		// between_or_not dataType:bit
		@ApiModelProperty(name="")
		@ExcelProperty("between_or_not")
		@Column(name="between_or_not")
		Boolean  betweenOrNot;

		// in_value dataType:varchar
		@ApiModelProperty(name="")
		@ExcelProperty("in_value")
		@Column(name="in_value")
		String  inValue;



}